import urllibimport peresimport gennyfrom genny.wave_rendering import render_blip_part_with_new_textclass SimpleYoutubeSearchLinkRenderer(genny.renderer.Renderer):    def __init__(self):        super(SimpleYoutubeSearchLinkRenderer, self).__init__(genny.token_filter.BasicObjectFilter([(peres.parser.SimpleObject.TYPE_LINK, "yt")]))        def render(self, token):        encoded_text =  urllib.urlencode({'search_query': token.get_obj_value()})        return render_blip_part_with_new_text(token, 'http://www.youtube.com/results?%s' % (encoded_text))